package 综合应用.T5;

public class Emp {
    private String no;
    private String ename;
    private String deptno;
    private Dept dept;

    public Emp() {
    }

    public Emp(String no, String ename, String deptno) {
        this.no = no;
        this.ename = ename;
        this.deptno = deptno;
    }

    public Emp(String no, String ename, String deptno, Dept dept) {
        this.no = no;
        this.ename = ename;
        this.deptno = deptno;
        this.dept = dept;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getDeptno() {
        return deptno;
    }

    public void setDeptno(String deptno) {
        this.deptno = deptno;
    }


}
